package com.academy.teacher;

import com.academy.querystapp.R;
import com.academy.services.RequestMethod;
import com.academy.util.AcademyUtility;

import android.app.Activity;
import android.app.ProgressDialog;
import android.os.AsyncTask;

public class GetInfosTask //extends AsyncTask<Void, Void, Boolean> 
{
//
//	Activity activity;
//	Boolean value=true;
//
//	
//	boolean flag = true;
//	String message, title;
//	String strQuestion,StrVisitingCount,strPostedID,strAskedBy;
//	ProgressDialog progress_Dialog;
//	Boolean isProcessCompleted = false;
//	
//	@Override
//	protected Boolean doInBackground(Void... params)
//	{
//		while(isProcessCompleted == false)
//		{	                      
//			System.out.println("Login testdialog.......");
//			try 
//			{
//				
//				restRequest = new RestClient(activity.getResources().getString(R.string.viewStudentPostURL));
//				restRequest.AddParam(activity.getResources().getString(R.string.TeacherID_param), AcademyUtility.getTeacherID());
//				restRequest.AddParam(activity.getResources().getString(R.string.userType_Param),"ViewStudentPostedQuery");
////				restRequest.AddParam(getString(R.string.type_paramname),"s");
//				try
//				{
//					restRequest.Execute(RequestMethod.GET);
//					
//					System.out.println("Check the REsponse : "+restRequest.getResponse());
//					if(restRequest.getResponse()!= null)
//			      	{
//			      		isProcessCompleted = true;
//			      	}
//				}
//				catch(Exception e)
//				{
//					System.out.println("Error in the execution"+e.toString());
//				}			      
////	    	  	parseResponse(restRequest.getResponse());
//				
//				Thread.sleep(100);
//			}
//			catch (InterruptedException e)
//			{
//          
//			}
//		}
//
//		// TODO Auto-generated method stub
//		return true;
//	}
//	
//	protected void onPostExecute(Boolean result) 
//	{
//		progress_Dialog.dismiss();
//		if(result == true)
//		{  
////			 parseResponse(restRequest.getResponse());
//  	  	}
//		else
//		{
//
//		}
//	}
//			
//			
//			
////	waitForCompletion.execute(null, null, null);					
//		
//	   

}
